home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 2 / Tech Arsenal 2 (Arsenal Computer).iso / clipper / 52cus.exe / INSTALL.DAT < prev    next >
Encoding:
INSTALL Professional project  |  1993-08-06  |  11.7 KB  |  409 lines

  1. /****************************************************************/
  2. /*  INSTALL.DAT                                                 */
  3. /*                                                              */
  4. /*  Copyright (c) 1993 Computer Associates International        */
  5. /*  All Rights Reserved                                         */
  6. /*                                                              */
  7. /*  Last revision:   07/30/93                                   */
  8. /****************************************************************/
  9.  
  10. @DefineProject
  11.    @Group     = "A"
  12.    @Requires  @HardDisk
  13.    @Name      = "CA-Clipper 5.2c"
  14.    @Version   = "5.2c"
  15.    @OutDrive  = C
  16.    @Subdir    = "\\CLIPPER5"
  17. @EndProject
  18.  
  19. @DefineVars
  20.    @Integer @InDisk  = 0      /* change for proper input disk type */
  21.    @Dir @Bin           = "@SubDir\\BIN"
  22.    @Dir @Include       = "@SubDir\\INCLUDE"
  23.    @Dir @Lib           = "@SubDir\\LIB"
  24.    @Dir @Obj           = "@SubDir\\OBJ"
  25.    @Dir @Dbu           = "@SubDir\\SOURCE\\DBU"
  26.    @Dir @Rl            = "@SubDir\\SOURCE\\RL"
  27.    @Dir @Sys           = "@SubDir\\SOURCE\\SYS"
  28.    @Dir @Sample        = "@SubDir\\SOURCE\\SAMPLE"
  29.    @Dir @Ng            = "\\NG"
  30.    @Qstring @NewLine   = "\n"
  31.    @Qstring @Pkbkp     = "/O"  
  32.    
  33. @EndVars
  34.  
  35. @Display
  36. @Cls
  37.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Patch 
  38.   █ Computer        █
  39.   █  Associates     █     This program will upgrade the CA-Clipper   
  40.   █   International █     version 5.20, 5.2a or 5.2b files on your 
  41.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     computer system to 5.2c. The basic steps in 
  42.        ▄▄▄▄▄▄▄▄▄          the procedure are as follows:
  43.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    
  44.    
  45.                           ■ Specify target directories
  46.                           ■ Install patch files to hard disk
  47.                           ■ Execute patch files
  48.  
  49.                   Press Esc at any time to stop the installation.
  50.  
  51.                                        @Pause
  52.  
  53. @EndDisplay
  54. @GetOption
  55. @LocalWindow(9,38)
  56. @Cls
  57.  
  58. @Cls
  59.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  60.   █ Computer        █
  61.   █  Associates     █     
  62.   █   International █     Exit Patch and Perform a backup?
  63.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     
  64.        ▄▄▄▄▄▄▄▄▄         
  65.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  66.  
  67.                             @Option 10 = "Exit" 
  68.                             @Option 11 = "Continue" 
  69.  
  70. @Newline
  71.  
  72.          You should backup your current version of CA-Clipper 5.2
  73.          and remove any prior versions of CA-Clipper 5.2 from your 
  74.          CA-Clipper 5.2 directory structure before applying the 
  75.          CA-Clipper 5.2c upgrade patch.  If you have not backed up 
  76.          and removed any prior versions (as per the instructions 
  77.          contained in the 52CUS.TXT file) yet, you should exit this 
  78.          installation, perform a backup and restart the patch process.
  79.  
  80. @EndOption
  81.  
  82. @If ( 10 [= @Option )
  83.    @Exit ()
  84. @Endif
  85.  
  86.  
  87. DrivePick:
  88. @GetOutDrive
  89. @Suppress A
  90. @Suppress B
  91. @LocalWindow(11,36)
  92. @Cls
  93.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  94.   █ Computer        █
  95.   █  Associates     █     Select Clipper 5.2 Drive:
  96.   █   International █
  97.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  98.        ▄▄▄▄▄▄▄▄▄
  99.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.      Use  and  to highlight the drive where CLIPPER 5.2 is installed, 
  110.      then press ─┘ to continue. Press Esc to exit.  
  111.  
  112. @EndOutDrive
  113.  
  114. @GetSubdir
  115. @LocalWindow(6,56)
  116. @Cls
  117.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  118.   █ Computer        █
  119.   █  Associates     █     Select Clipper 5.2 Directory:
  120.   █   International █
  121.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  122.        ▄▄▄▄▄▄▄▄▄
  123.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  124.  
  125.  
  126.  
  127.          
  128.      Type the directory name where CLIPPER 5.2 is installed, then
  129.      press ─┘ to continue. Press Esc to exit.  
  130.  
  131. @EndSubdir
  132.  
  133. @GetOption
  134. @LocalWindow(7,38)
  135. @Cls
  136.  
  137. @Cls
  138.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  139.   █ Computer        █
  140.   █  Associates     █     Patch files in the following directories?
  141.   █   International █
  142.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     
  143.        ▄▄▄▄▄▄▄▄▄         
  144.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄         @Option 101 = "  Yes  " 
  145.                             @Option 102 = "  No   " 
  146. @Newline
  147.                          Executables  =>  @Subdir\BIN
  148.                          Libraries    =>  @Subdir\LIB
  149.                          Header files =>  @SubDir\INCLUDE
  150.                          Obj files    =>  @SubDir\OBJ
  151.                          Dbu files    =>  @Subdir\SOURCE\DBU
  152.                          RL files     =>  @Subdir\SOURCE\RL
  153.                          Sys files    =>  @Subdir\SOURCE\SYS
  154.                          Sample files =>  @Subdir\SOURCE\SAMPLE
  155.                          Norton guide =>  \NG
  156.  
  157.       Select 'Yes' to proceed with patch installation using directories 
  158.       shown above.  If you select 'No', you will be prompted for each
  159.       of the above directories.
  160. @EndOption
  161.  
  162. @Bin = "@Subdir\\Bin"
  163. @Lib = "@Subdir\\Lib"
  164. @Include = "@Subdir\\Include"
  165. @Obj = "@Subdir\\Obj"
  166. @Dbu = "@Subdir\\Source\\Dbu"
  167. @Rl = "@Subdir\\Source\\Rl"
  168. @Sys = "@Subdir\\Source\\Sys"
  169. @Sample = "@Subdir\\Source\\Sample"
  170. @Ng = "\\NG"
  171.  
  172. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Bin" ) ) )
  173. GetBinPath:
  174.   @GetSubdir @Bin
  175.   @LocalWindow(9,48)
  176.   @Move(12,1)
  177.                 Enter the path to the BIN directory, then
  178.                 press ─┘ to continue.  Press Esc to exit.  
  179.  
  180.   @EndSubdir
  181.  
  182.   @If ( ! @DirExists( "@OutDrive:@Bin" ) )
  183.     @Display
  184.     @Move( 12, ( 58 - @StrLen( "@Bin" ) ) / 2, "@OutDrive:@Bin DIRECTORY NOT FOUND" )
  185.     @Move( 16, 1 )
  186.                                        @Pause
  187.     @EndDisplay
  188.     @Goto GetBinPath
  189.   @Endif
  190. @Endif
  191.  
  192. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Lib" ) ) )
  193. GetLibPath:
  194.   @GetSubdir @Lib
  195.   @LocalWindow(9,48)
  196.   @Move(12,1)
  197.                 Enter the path to the LIB directory, then
  198.                 press ─┘ to continue.  Press Esc to exit.  
  199.   @EndSubdir
  200.  
  201.   @If ( ! @DirExists( "@OutDrive:@Lib" ) )
  202.     @Display
  203.     @Move( 12, ( 58 - @StrLen( "@Lib" ) ) / 2, "@OutDrive:@Lib DIRECTORY NOT FOUND" )
  204.     @Move( 16, 1 )
  205.                                        @Pause
  206.     @EndDisplay
  207.     @Goto GetLibPath
  208.   @Endif
  209. @Endif
  210.  
  211. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Include" ) ) )
  212. GetIncludePath:
  213.   @GetSubdir @Include
  214.   @LocalWindow(9,48)
  215.   @Move(12,1) 
  216.                 Enter the path to the INCLUDE directory, then
  217.                 press ─┘ to continue.  Press Esc to exit.  
  218.   @EndSubdir
  219.  
  220.   @If ( ! @DirExists( "@OutDrive:@Include" ) )
  221.     @Display
  222.     @Move( 12, ( 58 - @StrLen( "@Include" ) ) / 2, "@OutDrive:@Include DIRECTORY NOT FOUND" )
  223.     @Move( 16, 1 )
  224.                                        @Pause
  225.     @EndDisplay
  226.     @Goto GetIncludePath
  227.   @Endif
  228. @Endif
  229.  
  230. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Obj" ) ) )
  231. GetObjPath:
  232.   @GetSubdir @Obj
  233.   @LocalWindow(9,48)
  234.   @Move(12,1)
  235.                 Enter the path to the OBJ directory, then
  236.                 press ─┘ to continue.  Press Esc to exit.  
  237.   @EndSubdir
  238.  
  239.   @If ( ! @DirExists( "@OutDrive:@Obj" ) )
  240.     @Display
  241.     @Move( 12, ( 58 - @StrLen( "@Obj" ) ) / 2, "@OutDrive:@Obj DIRECTORY NOT FOUND" )
  242.     @Move( 16, 1 )
  243.                                        @Pause
  244.     @EndDisplay
  245.     @Goto GetObjPath
  246.   @Endif
  247. @Endif
  248.  
  249. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Dbu" ) ) )
  250. GetDbuPath:
  251.   @GetSubdir @Dbu
  252.   @LocalWindow(9,48)
  253.   @Move(12,1)
  254.                 Enter the path to the DBU directory, then
  255.                 press ─┘ to continue.  Press Esc to exit.  
  256.   @EndSubdir
  257.  
  258.   @If ( ! @DirExists( "@OutDrive:@Dbu" ) )
  259.     @Display
  260.     @Move( 12, ( 58 - @StrLen( "@Dbu" ) ) / 2, "@OutDrive:@Dbu DIRECTORY NOT FOUND" )
  261.     @Move( 16, 1 )
  262.                                        @Pause
  263.     @EndDisplay
  264.     @Goto GetDbuPath
  265.   @Endif
  266. @Endif
  267.  
  268. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Rl" ) ) )
  269. GetRlPath:
  270.   @GetSubdir @Rl
  271.   @LocalWindow(9,48)
  272.   @Move(12,1)
  273.                 Enter the path to the RL directory, then
  274.                 press ─┘ to continue.  Press Esc to exit.  
  275.   @EndSubdir
  276.  
  277.   @If ( ! @DirExists( "@OutDrive:@Rl" ) )
  278.     @Display
  279.     @Move( 12, ( 58 - @StrLen( "@Rl" ) ) / 2, "@OutDrive:@Rl DIRECTORY NOT FOUND" )
  280.     @Move( 16, 1 )
  281.                                        @Pause
  282.     @EndDisplay
  283.     @Goto GetRlPath
  284.   @Endif
  285. @Endif
  286.  
  287. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Sys" ) ) )
  288. GetSysPath:
  289.   @GetSubdir @Sys
  290.   @LocalWindow(9,48)
  291.   @Move(12,1)
  292.                 Enter the path to the SYS directory, then
  293.                 press ─┘ to continue.  Press Esc to exit.  
  294.   @EndSubdir
  295.  
  296.   @If ( ! @DirExists( "@OutDrive:@Sys" ) )
  297.     @Display
  298.     @Move( 12, ( 58 - @StrLen( "@Sys" ) ) / 2, "@OutDrive:@Sys DIRECTORY NOT FOUND" )
  299.     @Move( 16, 1 )
  300.                                        @Pause
  301.     @EndDisplay
  302.     @Goto GetSysPath
  303.   @Endif
  304. @Endif
  305.  
  306. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Sample" ) ) )
  307. GetSamplePath:
  308.   @GetSubdir @Sample
  309.   @LocalWindow(9,48)
  310.   @Move(12,1)
  311.                 Enter the path to the SAMPLE directory, then
  312.                 press ─┘ to continue.  Press Esc to exit.  
  313.   @EndSubdir
  314.  
  315.   @If ( ! @DirExists( "@OutDrive:@Sample" ) )
  316.     @Display
  317.     @Move( 12, ( 58 - @StrLen( "@Sample" ) ) / 2, "@OutDrive:@Sample DIRECTORY NOT FOUND" )
  318.     @Move( 16, 1 )
  319.                                        @Pause
  320.     @EndDisplay
  321.     @Goto GetSamplePath
  322.   @Endif
  323. @Endif
  324.  
  325. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Ng" ) ) )
  326. GetNgPath:
  327.   @GetSubdir @Ng
  328.   @LocalWindow(9,48)
  329.   @Move(12,1)
  330.                 Enter the path to the NG directory, then
  331.                 press ─┘ to continue.  Press Esc to exit.  
  332.   @EndSubdir
  333.  
  334.   @If ( ! @DirExists( "@OutDrive:@Ng" ) )
  335.     @Display
  336.     @Move( 12, ( 58 - @StrLen( "@Ng" ) ) / 2, "@OutDrive:@Ng DIRECTORY NOT FOUND" )
  337.     @Move( 16, 1 )
  338.                                        @Pause
  339.     @EndDisplay
  340.     @Goto GetNgPath
  341.   @Endif
  342. @EndIf
  343.  
  344.   @DefineDisk
  345.      @Label = "Update Disk"
  346.    
  347.      @BeginLib 52CINC.LIF
  348.        @FILE *.* @Out @OutDrive:@Include
  349.      @EndLib
  350.  
  351.      @BeginLib 52COBJ.LIF
  352.        @FILE *.* @Out @OutDrive:@Obj
  353.      @EndLib
  354.  
  355.      @BeginLib 52CRL.LIF
  356.        @FILE *.* @Out @OutDrive:@Rl
  357.      @EndLib
  358.  
  359.      @BeginLib 52CDBU.LIF
  360.        @FILE *.* @Out @OutDrive:@Dbu
  361.      @EndLib
  362.  
  363.      @BeginLib 52CSAMPL.LIF
  364.        @FILE *.* @Out @OutDrive:@Sample
  365.      @EndLib
  366.  
  367.      @BeginLib 52CSYS.LIF
  368.        @FILE *.* @Out @OutDrive:@Sys
  369.      @EndLib
  370.  
  371.   @EndDisk
  372.  
  373. @Finish
  374. @Cls
  375. @ChDrive(@StartUpDrive)   
  376.  
  377.   @SPAWN("PATCH @OutDrive:@Bin CLP52BIN /NOBACKUP /NOSUBDIRSEARCH /NOPATHSEARCH")
  378.                                        @Pause
  379.  
  380.   @SPAWN("PATCH @OutDrive:@Lib CLP52LIB /NOBACKUP /NOSUBDIRSEARCH /NOPATHSEARCH")
  381.                                        @Pause
  382.  
  383.   @SPAWN("PATCH @OutDrive:@Ng CLP52NG /NOBACKUP /NOSUBDIRSEARCH /NOPATHSEARCH")
  384.                                        @Pause
  385.  
  386.  
  387.   @Cls
  388.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  389.   █ Computer        █
  390.   █  Associates     █     CA-Clipper 5.2c has been installed on your 
  391.   █   International █     computer. Before using the product, view the
  392.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     52CUS.TXT file using your word processor or
  393.        ▄▄▄▄▄▄▄▄▄          the DOS TYPE command. This file contains the 
  394.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄       latest product information as well as 
  395.                           instructions on how to re-compile DBU, RL,
  396.                           PE and the pre-linked libraries.
  397.  
  398.  
  399.  
  400. IMPORTANT:
  401.    In order to ensure that the CA-Clipper 5.2c patch has been 
  402.    successfully installed, you should compare the date and time stamps 
  403.    of the updated files against the file list in the 52CUS.TXT file. If 
  404.    you have encountered a problem that you are unable to correct, call 
  405.    your CA-Clipper Level-I Technical Support representative.
  406.  
  407. @Pause
  408. @EndFinish  
  409.